Optimal. Leaf size=202 \[ -\frac {b}{12 c^3 d^3 \left (1-c^2 x^2\right )^{3/2}}+\frac {b}{8 c^3 d^3 \sqrt {1-c^2 x^2}}+\frac {x (a+b \text {ArcSin}(c x))}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {x (a+b \text {ArcSin}(c x))}{8 c^2 d^3 \left (1-c^2 x^2\right )}+\frac {i (a+b \text {ArcSin}(c x)) \text {ArcTan}\left (e^{i \text {ArcSin}(c x)}\right )}{4 c^3 d^3}-\frac {i b \text {PolyLog}\left (2,-i e^{i \text {ArcSin}(c x)}\right )}{8 c^3 d^3}+\frac {i b \text {PolyLog}\left (2,i e^{i \text {ArcSin}(c x)}\right )}{8 c^3 d^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 202, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {4791, 4747,
4749, 4266, 2317, 2438, 267} \begin {gather*} \frac {i \text {ArcTan}\left (e^{i \text {ArcSin}(c x)}\right ) (a+b \text {ArcSin}(c x))}{4 c^3 d^3}-\frac {x (a+b \text {ArcSin}(c x))}{8 c^2 d^3 \left (1-c^2 x^2\right )}+\frac {x (a+b \text {ArcSin}(c x))}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {i b \text {Li}_2\left (-i e^{i \text {ArcSin}(c x)}\right )}{8 c^3 d^3}+\frac {i b \text {Li}_2\left (i e^{i \text {ArcSin}(c x)}\right )}{8 c^3 d^3}+\frac {b}{8 c^3 d^3 \sqrt {1-c^2 x^2}}-\frac {b}{12 c^3 d^3 \left (1-c^2 x^2\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 267
Rule 2317
Rule 2438
Rule 4266
Rule 4747
Rule 4749
Rule 4791
Rubi steps
\begin {align*} \int \frac {x^2 \left (a+b \sin ^{-1}(c x)\right )}{\left (d-c^2 d x^2\right )^3} \, dx &=\frac {x \left (a+b \sin ^{-1}(c x)\right )}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {b \int \frac {x}{\left (1-c^2 x^2\right )^{5/2}} \, dx}{4 c d^3}-\frac {\int \frac {a+b \sin ^{-1}(c x)}{\left (d-c^2 d x^2\right )^2} \, dx}{4 c^2 d}\\ &=-\frac {b}{12 c^3 d^3 \left (1-c^2 x^2\right )^{3/2}}+\frac {x \left (a+b \sin ^{-1}(c x)\right )}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {x \left (a+b \sin ^{-1}(c x)\right )}{8 c^2 d^3 \left (1-c^2 x^2\right )}+\frac {b \int \frac {x}{\left (1-c^2 x^2\right )^{3/2}} \, dx}{8 c d^3}-\frac {\int \frac {a+b \sin ^{-1}(c x)}{d-c^2 d x^2} \, dx}{8 c^2 d^2}\\ &=-\frac {b}{12 c^3 d^3 \left (1-c^2 x^2\right )^{3/2}}+\frac {b}{8 c^3 d^3 \sqrt {1-c^2 x^2}}+\frac {x \left (a+b \sin ^{-1}(c x)\right )}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {x \left (a+b \sin ^{-1}(c x)\right )}{8 c^2 d^3 \left (1-c^2 x^2\right )}-\frac {\text {Subst}\left (\int (a+b x) \sec (x) \, dx,x,\sin ^{-1}(c x)\right )}{8 c^3 d^3}\\ &=-\frac {b}{12 c^3 d^3 \left (1-c^2 x^2\right )^{3/2}}+\frac {b}{8 c^3 d^3 \sqrt {1-c^2 x^2}}+\frac {x \left (a+b \sin ^{-1}(c x)\right )}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {x \left (a+b \sin ^{-1}(c x)\right )}{8 c^2 d^3 \left (1-c^2 x^2\right )}+\frac {i \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{4 c^3 d^3}+\frac {b \text {Subst}\left (\int \log \left (1-i e^{i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{8 c^3 d^3}-\frac {b \text {Subst}\left (\int \log \left (1+i e^{i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{8 c^3 d^3}\\ &=-\frac {b}{12 c^3 d^3 \left (1-c^2 x^2\right )^{3/2}}+\frac {b}{8 c^3 d^3 \sqrt {1-c^2 x^2}}+\frac {x \left (a+b \sin ^{-1}(c x)\right )}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {x \left (a+b \sin ^{-1}(c x)\right )}{8 c^2 d^3 \left (1-c^2 x^2\right )}+\frac {i \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{4 c^3 d^3}-\frac {(i b) \text {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{8 c^3 d^3}+\frac {(i b) \text {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{8 c^3 d^3}\\ &=-\frac {b}{12 c^3 d^3 \left (1-c^2 x^2\right )^{3/2}}+\frac {b}{8 c^3 d^3 \sqrt {1-c^2 x^2}}+\frac {x \left (a+b \sin ^{-1}(c x)\right )}{4 c^2 d^3 \left (1-c^2 x^2\right )^2}-\frac {x \left (a+b \sin ^{-1}(c x)\right )}{8 c^2 d^3 \left (1-c^2 x^2\right )}+\frac {i \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{4 c^3 d^3}-\frac {i b \text {Li}_2\left (-i e^{i \sin ^{-1}(c x)}\right )}{8 c^3 d^3}+\frac {i b \text {Li}_2\left (i e^{i \sin ^{-1}(c x)}\right )}{8 c^3 d^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice
the leaf count of optimal. \(445\) vs. \(2(202)=404\).
time = 0.46, size = 445, normalized size = 2.20 \begin {gather*} \frac {-\frac {2 b \sqrt {1-c^2 x^2}}{(-1+c x)^2}+\frac {b c x \sqrt {1-c^2 x^2}}{(-1+c x)^2}-\frac {3 b \sqrt {1-c^2 x^2}}{-1+c x}-\frac {2 b \sqrt {1-c^2 x^2}}{(1+c x)^2}-\frac {b c x \sqrt {1-c^2 x^2}}{(1+c x)^2}+\frac {3 b \sqrt {1-c^2 x^2}}{1+c x}+\frac {12 a c x}{\left (-1+c^2 x^2\right )^2}+\frac {6 a c x}{-1+c^2 x^2}+3 i b \pi \text {ArcSin}(c x)+\frac {3 b \text {ArcSin}(c x)}{(-1+c x)^2}+\frac {3 b \text {ArcSin}(c x)}{-1+c x}-\frac {3 b \text {ArcSin}(c x)}{(1+c x)^2}+\frac {3 b \text {ArcSin}(c x)}{1+c x}-3 b \pi \log \left (1-i e^{i \text {ArcSin}(c x)}\right )-6 b \text {ArcSin}(c x) \log \left (1-i e^{i \text {ArcSin}(c x)}\right )-3 b \pi \log \left (1+i e^{i \text {ArcSin}(c x)}\right )+6 b \text {ArcSin}(c x) \log \left (1+i e^{i \text {ArcSin}(c x)}\right )+3 a \log (1-c x)-3 a \log (1+c x)+3 b \pi \log \left (-\cos \left (\frac {1}{4} (\pi +2 \text {ArcSin}(c x))\right )\right )+3 b \pi \log \left (\sin \left (\frac {1}{4} (\pi +2 \text {ArcSin}(c x))\right )\right )-6 i b \text {PolyLog}\left (2,-i e^{i \text {ArcSin}(c x)}\right )+6 i b \text {PolyLog}\left (2,i e^{i \text {ArcSin}(c x)}\right )}{48 c^3 d^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.30, size = 358, normalized size = 1.77
method | result | size |
derivativedivides | \(\frac {-\frac {a}{16 d^{3} \left (c x +1\right )^{2}}+\frac {a}{16 d^{3} \left (c x +1\right )}-\frac {a \ln \left (c x +1\right )}{16 d^{3}}+\frac {a}{16 d^{3} \left (c x -1\right )^{2}}+\frac {a}{16 d^{3} \left (c x -1\right )}+\frac {a \ln \left (c x -1\right )}{16 d^{3}}+\frac {b \arcsin \left (c x \right ) c^{3} x^{3}}{8 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}-\frac {b \,c^{2} x^{2} \sqrt {-c^{2} x^{2}+1}}{8 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}+\frac {b \arcsin \left (c x \right ) c x}{8 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}+\frac {b \sqrt {-c^{2} x^{2}+1}}{24 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}+\frac {b \arcsin \left (c x \right ) \ln \left (1+i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}-\frac {b \arcsin \left (c x \right ) \ln \left (1-i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}-\frac {i b \dilog \left (1+i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}+\frac {i b \dilog \left (1-i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}}{c^{3}}\) | \(358\) |
default | \(\frac {-\frac {a}{16 d^{3} \left (c x +1\right )^{2}}+\frac {a}{16 d^{3} \left (c x +1\right )}-\frac {a \ln \left (c x +1\right )}{16 d^{3}}+\frac {a}{16 d^{3} \left (c x -1\right )^{2}}+\frac {a}{16 d^{3} \left (c x -1\right )}+\frac {a \ln \left (c x -1\right )}{16 d^{3}}+\frac {b \arcsin \left (c x \right ) c^{3} x^{3}}{8 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}-\frac {b \,c^{2} x^{2} \sqrt {-c^{2} x^{2}+1}}{8 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}+\frac {b \arcsin \left (c x \right ) c x}{8 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}+\frac {b \sqrt {-c^{2} x^{2}+1}}{24 d^{3} \left (c^{4} x^{4}-2 c^{2} x^{2}+1\right )}+\frac {b \arcsin \left (c x \right ) \ln \left (1+i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}-\frac {b \arcsin \left (c x \right ) \ln \left (1-i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}-\frac {i b \dilog \left (1+i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}+\frac {i b \dilog \left (1-i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{8 d^{3}}}{c^{3}}\) | \(358\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {\int \frac {a x^{2}}{c^{6} x^{6} - 3 c^{4} x^{4} + 3 c^{2} x^{2} - 1}\, dx + \int \frac {b x^{2} \operatorname {asin}{\left (c x \right )}}{c^{6} x^{6} - 3 c^{4} x^{4} + 3 c^{2} x^{2} - 1}\, dx}{d^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x^2\,\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )}{{\left (d-c^2\,d\,x^2\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________